cmake_minimum_required(VERSION 2.6)

project(SmartLib)
set(SmartLib_VERSION_MAJOR 0)
set(SmartLib_VERSION_MINOR 3)
set(SmartLib_VERSION_PATCH 5)

set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG_")

include_directories(include)

add_subdirectory(sources)

install(DIRECTORY include/ DESTINATION include)

find_package(Doxygen)
if(DOXYGEN_FOUND)
    configure_file(Doxyfile.in ${PROJECT_BINARY_DIR}/Doxyfile @ONLY)
    add_custom_target(docs  
  					  COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Doxyfile
  					  SOURCES ${PROJECT_BINARY_DIR}/Doxyfile)
endif()
